package defs

type Err struct {
	Error string `json:"error"`
	ErrorCode string `json:"error_code"`
}

type ErrorRespone struct {
	HttpSC int
	Error Err
}
var (
	ErrorRequestBodyParseFaild = ErrorRespone{HttpSC:400,Error:Err{Error:"Request body is not correct",ErrorCode:"001"}}
	ErrorNotAuthUser = ErrorRespone{HttpSC:401,Error:Err{Error:"User authentication failed.",ErrorCode:"002"}}
	ErrorDBError = ErrorRespone{HttpSC:500,Error:Err{Error:"DB ops failed",ErrorCode:"003"}}
	ErrorInternalFaults = ErrorRespone{HttpSC:500,Error:Err{Error:"Internal service error",ErrorCode:"004"}}

)

